﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Day22EF.Data.Models
{
    public class AffiliationUser
    {
        public int AffiliationUserId { get; set; }

        public int AffiliationId { get; set; }
        [ForeignKey("AffiliationId")]
        public virtual Affiliation Affiliation { get; set; }

        public string UserId { get; set; }
        [ForeignKey("UserId")]
        public virtual User User { get; set; }
    }
}
